package com.b2c.common.vo;

import com.b2c.common.enums.ExceptionEnums;
import lombok.Data;

/**
 * @ClassName ExceptionResult
 * @Description: TODO
 * @Author shenyaqi
 * @Date 2020/7/14
 * @Version V1.0
 **/
@Data
public class ExceptionResult {
    private int code;
    private String msg;
    long timestamp;
    private String path;
    private String error;


    public ExceptionResult(ExceptionEnums enums){
        this.code= enums.getCode();
        this.msg= enums.getMsg();
        this.timestamp=System.currentTimeMillis();

    }
}
